package com.raja.servingStation.service;

import com.alibaba.fastjson.JSONObject;
import com.raja.servingStation.common.constant.MysqlPageVo;
import com.raja.servingStation.entity.ComponentModel;
import com.raja.servingStation.entity.FaultDiacrisis;
import com.raja.servingStation.entity.RepairPlan;

import java.util.List;

/**
 * Created by dell on 2017/4/20.
 */
public interface TbOrderService {

    String selectMaxId() throws Exception;

    Double queryOrderScore(Long id) throws Exception;

    int queryDaiBanOrderCount(Integer servingStationId) throws Exception;

    MysqlPageVo queryListByPage(JSONObject param, MysqlPageVo mysqlPageVo,Integer userId) throws Exception;

    String selectFirstOrderMaxId() throws Exception;

    FaultDiacrisis getFaultDiacrisisByOrderId(Integer orderId) throws Exception;

    List<RepairPlan> getRepairPlansByOrderId(Integer orderId) throws Exception;

    List<ComponentModel> getComponentsByOrderId(Integer orderId) throws Exception;

    int queryOrderIsExit(Integer orderId, Integer orderType) throws Exception;
}
